package com.example.practise.controller;

import com.example.practise.constants.RequestPathConstants;
import com.example.practise.request.StudentRequest;
import com.example.practise.response.APIRespVo;
import com.example.practise.response.Student.StudentRespVo;
import com.example.practise.service.IStudentService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * author:
 */
@RestController
@RequestMapping(RequestPathConstants.BASE)
@Api(value = "学生接口", tags = "StudentController")
public class StudentController {

    @Autowired
    private IStudentService studentService;

    @ApiOperation(value = "获取待办任务列表", notes = "获取待办任务列表")
    @GetMapping(RequestPathConstants.QUERY_STUDENT_LIST)
    public APIRespVo<List<StudentRespVo>> getScheduleJobList() {
        return studentService.qryList();
    }

}
